﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="manageBlogroll.aspx.cs" Inherits="admin_manageBlogroll" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理友情链接</title>
    <link href="../css/body.css" rel="stylesheet" type="text/css" />
    <link href="../css/table.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .main
        {
            text-align: left;
            width:800px;
            margin-left:50px;
            margin-top:30px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
    
        <table width="800px" class="tab"  align="center">
        <tr>
        <th width="100">网站名称</th>
        <th width="150">Logo</th>
        <th width="200">网站地址</th>
        <th width="200">描述</th>
        <th width="75">修改</th>
        <th width="75">删除</th>
        </tr>
        <asp:Repeater ID="blogrollList" runat="server">
                <ItemTemplate>
                    <tr style='background-color: <%#(Container.ItemIndex%2==0)?"#eeeeee":"#ffffff"%>'
                        onmouseover="this.style.background='#ddeeff'" onmouseout="this.style.background='<%#(Container.ItemIndex%2==0)?"#eeeeee":"#ffffff"%>'">
                        <td><%# DataBinder.Eval(Container.DataItem, "siteName")%></td>
                        <td><img src="<%# DataBinder.Eval(Container.DataItem, "siteLogo")%>" height="31" width="88" alt="<%# DataBinder.Eval(Container.DataItem, "siteAlt")%>"/></td>
                        <td><a href="http://<%# DataBinder.Eval(Container.DataItem, "sitelink")%>" target="_blank"><%# DataBinder.Eval(Container.DataItem, "sitelink")%></a></td>
                        <td><%# DataBinder.Eval(Container.DataItem, "siteAlt")%></td>
                            <td>
                                <a href="updateBlogroll.aspx?id=<%# DataBinder.Eval(Container.DataItem, "ID")%>" target="_self">
                                    [修改]</a>
                            </td>
                            <td>
                                <a href="delBlogroll.aspx?id=<%# DataBinder.Eval(Container.DataItem, "ID")%>" onclick="javascript:return  confirm('确认删除? ');"
                                    target="_self">[删除]</a>
                            </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
    </table>
    </div>
    </form>
</body>
</html>
